package com.ln.yygh.hosp.repository;

import com.ln.yygh.model.hosp.*;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.*;

/**
 * @author: lianXiaoChen
 * @create: 2021-05-31 18:45
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule, String> {
    //根据医院编号和排班编号查询
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);
    //根据医院编号可是编号和工作日期查询排班详细信息
    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
